#ifndef SCRIPTCOMPONENT_H
#define SCRIPTCOMPONENT_H

#include "Component.h" // Base class: Component

#include "core/Object.h"
#include "gameobjects/GameObject.h"
#include "managers/ScriptManager.h"

class ScriptComponent : public Component, public Ogre::FrameListener {

public:
	ScriptComponent();
	ScriptComponent(ComponentContainer* c, const std::string& name);
	virtual ~ScriptComponent();

	void init();
	bool frameStarted(const FrameEvent& evt);
	
	virtual std::string toString(void) const { return "ScriptComponent"; }
	
protected:
	::Object mActions;
	GameObject* mGo;
};

#endif // SCRIPTCOMPONENT_H
